


find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

message(status ${CMAKE_CURRENT_BINARY_DIR})

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS CameraProto.proto)

message( proto_lib: ${PROTOBUF_LIBRARIES})

add_library(net_agent SHARED net_agent.cpp ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(net_agent ${PROTOBUF_LIBRARIES})



ADD_EXECUTABLE(ut_net_agent ut_net_agent.cpp )
target_link_libraries(ut_net_agent net_agent)
















